import request from "@/utils/request.js";

const url = '/cloud-file-service/file-manage'
export function upload(data) {
	return request({
		url: url + "/upload",
		method: "post",
		contentType: "multipart/form-data; boundary=----WebKitFormBoundaryMM6bBNTtziZenm2T",
		data: data,
	})
}

export function download(fileId) {
	return request({
		url: url + "/download",
		method: "get",
		params: {fileId},
		responseType:'blob'
	})
}